<?php namespace web\admin\controller;
class Webset extends Common{
    protected $db;
    public function __construct(){
        parent::__construct();
        $this->db = new \system\model\Webset();
    }
    public function index(){
      if(IS_POST){
          if($this->db->edit()){
              message('编辑成功',u('index'),'success');
          }
            message($this->db->getError(),'','error');
      }
        $data = Db::table('webset')->get();

        View::with('data',$data)->make();
    }
}

